<script type="text/javascript">

mySettings = {
	previewParserPath:	'', // path to your BBCode parser
	markupSet: [
		{name:'<?php echo _Y_BOLD; ?>', key:'B', openWith:'[b]', closeWith:'[/b]', className:'bold'},
		{name:'<?php echo _Y_ITALIK; ?>', key:'I', openWith:'[i]', closeWith:'[/i]', className:'italic'},
		{name:'<?php echo _Y_UNDERLINE; ?>', key:'U', openWith:'[u]', closeWith:'[/u]', className:'underline'},
		{name:'<?php echo _Y_NOUNDER; ?>', key:'S', openWith:'[s]', closeWith:'[/s]', className:'strikethrough'},
		{separator:'---------------' },
		{name:'Изображение', key:'P', replaceWith:'[img][![Введите ссылку на изображение. Пример: http://site.ru/images.jpg]!][/img]', className:'images'},
		{name:'<?php echo _Y_URL; ?>', key:'L', openWith:'[url=[![<?php echo _Y_URL_D; ?>]!]]', closeWith:'[/url]', placeHolder:'<?php echo _Y_URL_D2; ?>', className:'urls'},
		{separator:'---------------' },
		{name:'<?php echo _Y_FONTSIZE; ?>', key:'S', openWith:'[size=[![<?php echo _Y_FONTSIZE; ?>]!]]', closeWith:'[/size]', className:'fonts',
		dropMenu :[
			{name:'Очень большой', openWith:'[size=8]', closeWith:'[/size]' },
			{name:'Большой', 	openWith:'[size=6]', closeWith:'[/size]' },
			{name:'Нормальный', openWith:'[size=3]', closeWith:'[/size]' },
			{name:'Маленький',  openWith:'[size=2]', closeWith:'[/size]' },
			{name:'Очень маленький', openWith:'[size=1]', closeWith:'[/size]' }
		]},
		{name:'<?php echo _Y_COL; ?>', className:'colors', openWith:'[color=[![<?php echo _Y_COL; ?>]!]]', closeWith:'[/color]', 
		dropMenu: [
			{name:'<?php echo _Y_COL3; ?>',	openWith:'[color=yellow]', 	closeWith:'[/color]', className:"col1-1" },
			{name:'<?php echo _Y_COL5; ?>',	openWith:'[color=orange]', 	closeWith:'[/color]', className:"col1-2" },
			{name:'<?php echo _Y_COL0; ?>', openWith:'[color=red]', 	closeWith:'[/color]', className:"col1-3" },
			
			{name:'<?php echo _Y_COL7; ?>', openWith:'[color=blue]', 	closeWith:'[/color]', className:"col2-1" },
			{name:'<?php echo _Y_COL6; ?>', openWith:'[color=purple]', 	closeWith:'[/color]', className:"col2-2" },
			{name:'<?php echo _Y_COL2; ?>', openWith:'[color=green]', 	closeWith:'[/color]', className:"col2-3" },
			
			{name:'<?php echo _Y_COL9; ?>', openWith:'[color=white]', 	closeWith:'[/color]', className:"col3-1" },
			{name:'<?php echo _Y_COL8; ?>', openWith:'[color=gray]', 	closeWith:'[/color]', className:"col3-2" },
			{name:'<?php echo _Y_COL1; ?>',	openWith:'[color=black]', 	closeWith:'[/color]', className:"col3-3" }
				]},
		{name:'<?php echo _Y_CENTER; ?>', openWith:'[center]\n', closeWith:'\n[/center]', className:'align_center'},
		{name:'<?php echo _Y_LEFT; ?>', openWith:'[left]\n', closeWith:'\n[/left]', className:'align_left'},
		{name:'<?php echo _Y_RIGTH; ?>', openWith:'[right]\n', closeWith:'\n[/right]', className:'align_right'},
		{separator:'---------------' },
		{name:'<?php echo _Y_LIST1; ?>', openWith:'[list]\n', closeWith:'\n[/list]',className:'list-bullet'},
		{name:'<?php echo _Y_LIST2 ?>', openWith:'[list=[![Стартовый номер]!]]\n', closeWith:'\n[/list]', className:'list-numeric'}, 
		{name:'List item', openWith:'[*] ', className:'list-item'},
		{separator:'---------------' },
		{name:'<?php echo _Y_YARQUOTE; ?>', openWith:'[quote]', closeWith:'[/quote]', className:'quotes'},
		{name:'<?php echo _Y_CODE; ?>', openWith:'[code]', closeWith:'[/code]', className:'code'}, 
		{separator:'---------------' },
		{name:'Очистить', className:"clean", replaceWith:function(markitup) { return markitup.selection.replace(/\[(.*?)\]/g, "") } }/*,
		{name:'<?php echo _Y_PREVIEW; ?>', className:"preview", call:'preview' }*/
	]
}
</script>
